package com.thrc.borrow.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.thrc.borrow.dao.OfflineApplyDao;
import com.thrc.borrow.entity.OfflineApply;
import com.thrc.borrow.vo.OfflineApplyVo;

@Service
public class OfflineApplyService implements BaseService<OfflineApply, OfflineApplyVo> {

	@Autowired
	private OfflineApplyDao offlineDao;

	@Override
	public OfflineApplyVo selectById(OfflineApply t) {
		return offlineDao.selectById(t);
	}

	@Override
	public List<OfflineApplyVo> selectAll(OfflineApply t) {
		return offlineDao.selectAll(t);
	}

	@Override
	public int selectCount(OfflineApply t) {
		return offlineDao.selectCount(t);
	}

	@Override
	public List<OfflineApplyVo> selectByPage(OfflineApply t) {
		t.setStartRow(t.getPageIndex(), t.getPageSize());
		return offlineDao.selectByPage(t);
	}

	@Override
	public void update(OfflineApply t) {
		offlineDao.update(t);
	}

	@Override
	public void delete(OfflineApply t) {
		offlineDao.delete(t);
	}

	@Override
	public void insert(OfflineApply t) {
		offlineDao.insert(t);
	}

}
